feat: match figma styles#960
Conversation
|
Warning Review limit reached
Next review available in: 2 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR refines MUI theme configuration by merging a CustomThemeBase into the theme, updates button and alert component overrides for shadow and color consistency, formats a CustomAlert component, and migrates the sponsor forms checkbox to use the newer slotProps accessibility API. ChangesUI Styling and Accessibility Refinements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
6edab8c to
08254b7
Compare
| mb: 2, | ||
| "& .MuiAlert-message": { | ||
| fontWeight: "normal", | ||
| ...(severity === "info" && { color: "#1E88E5" }) |
There was a problem hiding this comment.
@smarcet this is the kind of things I was talking about. This color should come from CustomTheme and have design team define what colors we use for info.main, info.light and info.dark .
@priscila-moneo probably want to make this two changes on CustomTheme
| <Grid2 size={12}> | ||
| <Box sx={{ px: 3, my: "10px" }}> | ||
| <Typography variant="h5"> | ||
| <Typography variant="h5" color="text.primary"> |
There was a problem hiding this comment.
isn't text.primary the default color ?
0b355c5 to
c4e9a56
Compare
|
Note: tests/build are failing because we need to update uicore version with new theme created. |
| styleOverrides: { | ||
| root: ({ ownerState }) => ({ | ||
| fontWeight: 500, | ||
| boxShadow: "none", |
There was a problem hiding this comment.
looks like these should go in uicore too, I think you need to ask which of the changes are needed for ALL APPs and which ones only for admin. I guess all of the are for all apps, right @smarcet ?
|
@priscila-moneo uicore version 5.0.35 |
There was a problem hiding this comment.
Pull request overview
This PR updates the app’s MUI styling/theme configuration to better align UI components (buttons, alerts, form controls) with the Figma design system.
Changes:
- Updated a sponsor forms “Show archived” checkbox label/control styling and accessibility props.
- Refined
CustomAlertstyling formatting and adjusted alert theme overrides for more consistent info coloring and message weight. - Refactored theme creation to extend from
CustomThemeBaseand removed button box shadows across interaction states.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/pages/sponsors/sponsor-forms-list-page/index.js | Adjusts checkbox accessibility props and prevents label wrapping to match intended layout. |
| src/components/mui/custom-alert.js | Consolidates sx styling and (should) ensure icon behavior is correct for default alerts. |
| src/components/CustomTheme.js | Extends base theme, removes button shadows, and improves alert info/message styling consistency. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| <Alert | ||
| severity={severity} | ||
| icon={!hideIcon} | ||
| sx={{ | ||
| justifyContent: "start", | ||
| alignItems: "center", | ||
| mb: 2 | ||
| }} | ||
| sx={{ justifyContent: "start", alignItems: "center", mb: 2 }} | ||
| > |
Signed-off-by: Priscila Moneo <priscila_moneo@hotmail.com.ar>
Signed-off-by: Priscila Moneo <priscila_moneo@hotmail.com.ar>
4c8fe34 to
35088f8
Compare
ref: https://app.clickup.com/t/9014802374/86b8tt4df
Summary by CodeRabbit
Style
Refactor